package cn.kgc.ebookvue02.service;

import cn.kgc.ebookvue02.mapper.CategoryMapper;
import cn.kgc.ebookvue02.pojo.Category;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author shkstart
 * @create 2020-05-18 21:58
 */
@Service("categoryService")
public class CategoryServiceiMPL implements CategoryService {

    @Resource
    CategoryMapper categoryMapper;

    @Override
    public List<Category> selectAllCategory() {
        List<Category> categories = categoryMapper.selectByExample(null);
        return categories;
    }
}
